import request from "../../utils/reuqest";
import { userInfoData } from "../../types/admin";
//查询所有用户的信息
export function getAllUserInfo(params: any): Promise<userInfoData> {
    return request.post(`/admin/admin/getAllFarmer`, params);
}

//禁用用户

export function disableUser(id: number, isDisable: number): Promise<any> {
    return request.put(`/admin/admin/disable?id=${id}&isDisable=${isDisable}`);
}

